#!/usr/bin/env python

# Copyright 2011 - 2012 David Selby dave6502@gmail.com

# This file is part of FX Wizard.

# FX Wizard is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# FX Wizard is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with FX Wizard.  If not, see <http://www.gnu.org/licenses/>.

import core.gui
import wx, pickle, os


this_dir = os.path.dirname(os.path.abspath(__file__))

# this_dir = os.path.dirname(os.path.abspath(__file__))
# f_obj = open(os.path.join(this_dir, 'core/install.pik'), 'rb')
# install  = pickle.load(f_obj)
# f_obj.close()

# FX_WIZARD_DIR  = install['FX_WIZARD_DIR']
# VERSION_STR    = install['version_str']
# MY_MOBILER_DIR = install['my_mobiler_dir']

FX_WIZARD_DIR  = this_dir
MY_MOBILER_DIR = ''

app = wx.App(False)

# the splash screen - optional
# bitmap = wx.Bitmap(os.path.join(FX_WIZARD_DIR, 'data', 'splash.png'), wx.BITMAP_TYPE_PNG)
# wx.SplashScreen(bitmap, wx.SPLASH_CENTRE_ON_SCREEN|wx.SPLASH_TIMEOUT, 1000, None, style=wx.SIMPLE_BORDER|wx.STAY_ON_TOP)

core.gui.MainWindow(None, FX_WIZARD_DIR, MY_MOBILER_DIR)
 
app.MainLoop()


